package com.bangyu.monitor.modular.system.service;

import com.bangyu.monitor.modular.system.entity.StaticStandDisplayment;
import com.bangyu.monitor.modular.system.mapper.StaticStandBendMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: zhangxue
 * @Date: 19/4/1 13:47
 * @Description:
 */
@Service
public class StaticStandDisplaymentService extends ServiceImpl<StaticStandBendMapper, StaticStandDisplayment> {


    public StaticStandDisplayment getByBeamNoAndDate(String beamNo,String year,String date){
        return this.baseMapper.getByBeamNoAndDate(beamNo,year,date);
    }
    public StaticStandDisplayment getByLastDate(String beamNo){
        return this.baseMapper.getByLastDate(beamNo);
    }

    public void batchInsert(List<StaticStandDisplayment> bends){
        this.baseMapper.batchInsert(bends);
    }
    public void insert(StaticStandDisplayment bend){
        this.baseMapper.insert_(bend);
    }


    public List<StaticStandDisplayment> queryByBeamNo(String beamNo){
        return this.baseMapper.queryByBeamNo(beamNo);
    }

}
